Integrand size = 31, antiderivative size = 100 \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=\frac {i a^5 c^4 \sec ^8(e+f x)}{8 f}+\frac {a^5 c^4 \tan (e+f x)}{f}+\frac {a^5 c^4 \tan ^3(e+f x)}{f}+\frac {3 a^5 c^4 \tan ^5(e+f x)}{5 f}+\frac {a^5 c^4 \tan ^7(e+f x)}{7 f} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {3603, 3567, 3852} \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=\frac {a^5 c^4 \tan ^7(e+f x)}{7 f}+\frac {3 a^5 c^4 \tan ^5(e+f x)}{5 f}+\frac {a^5 c^4 \tan ^3(e+f x)}{f}+\frac {a^5 c^4 \tan (e+f x)}{f}+\frac {i a^5 c^4 \sec ^8(e+f x)}{8 f} \]
[In]
[Out]
Rule 3567
Rule 3603
Rule 3852
Rubi steps \begin{align*} \text {integral}& = \left (a^4 c^4\right ) \int \sec ^8(e+f x) (a+i a \tan (e+f x)) \, dx \\ & = \frac {i a^5 c^4 \sec ^8(e+f x)}{8 f}+\left (a^5 c^4\right ) \int \sec ^8(e+f x) \, dx \\ & = \frac {i a^5 c^4 \sec ^8(e+f x)}{8 f}-\frac {\left (a^5 c^4\right ) \text {Subst}\left (\int \left (1+3 x^2+3 x^4+x^6\right ) \, dx,x,-\tan (e+f x)\right )}{f} \\ & = \frac {i a^5 c^4 \sec ^8(e+f x)}{8 f}+\frac {a^5 c^4 \tan (e+f x)}{f}+\frac {a^5 c^4 \tan ^3(e+f x)}{f}+\frac {3 a^5 c^4 \tan ^5(e+f x)}{5 f}+\frac {a^5 c^4 \tan ^7(e+f x)}{7 f} \\ \end{align*}
Time = 1.06 (sec) , antiderivative size = 84, normalized size of antiderivative = 0.84 \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=\frac {a^5 c^4 \sec ^8(e+f x) (36 \cos (e+f x)+57 \cos (3 (e+f x))-5 i (4 \sin (e+f x)+11 \sin (3 (e+f x)))) (-i \cos (5 (e+f x))+\sin (5 (e+f x)))}{280 f} \]
[In]
[Out]
Time = 0.57 (sec) , antiderivative size = 72, normalized size of antiderivative = 0.72
method | result | size |
risch | \(\frac {32 i a^{5} c^{4} \left (70 \,{\mathrm e}^{8 i \left (f x +e \right )}+56 \,{\mathrm e}^{6 i \left (f x +e \right )}+28 \,{\mathrm e}^{4 i \left (f x +e \right )}+8 \,{\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{35 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{8}}\) | \(72\) |
derivativedivides | \(\frac {i a^{5} c^{4} \left (\frac {\left (\tan ^{8}\left (f x +e \right )\right )}{8}+\frac {\left (\tan ^{6}\left (f x +e \right )\right )}{2}-\frac {i \left (\tan ^{7}\left (f x +e \right )\right )}{7}+\frac {3 \left (\tan ^{4}\left (f x +e \right )\right )}{4}-\frac {3 i \left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}-i \left (\tan ^{3}\left (f x +e \right )\right )-i \tan \left (f x +e \right )\right )}{f}\) | \(96\) |
default | \(\frac {i a^{5} c^{4} \left (\frac {\left (\tan ^{8}\left (f x +e \right )\right )}{8}+\frac {\left (\tan ^{6}\left (f x +e \right )\right )}{2}-\frac {i \left (\tan ^{7}\left (f x +e \right )\right )}{7}+\frac {3 \left (\tan ^{4}\left (f x +e \right )\right )}{4}-\frac {3 i \left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}-i \left (\tan ^{3}\left (f x +e \right )\right )-i \tan \left (f x +e \right )\right )}{f}\) | \(96\) |
parallelrisch | \(\frac {35 i a^{5} c^{4} \left (\tan ^{8}\left (f x +e \right )\right )+140 i a^{5} c^{4} \left (\tan ^{6}\left (f x +e \right )\right )+40 \left (\tan ^{7}\left (f x +e \right )\right ) a^{5} c^{4}+210 i a^{5} c^{4} \left (\tan ^{4}\left (f x +e \right )\right )+168 \left (\tan ^{5}\left (f x +e \right )\right ) a^{5} c^{4}+140 i a^{5} c^{4} \left (\tan ^{2}\left (f x +e \right )\right )+280 \left (\tan ^{3}\left (f x +e \right )\right ) a^{5} c^{4}+280 \tan \left (f x +e \right ) a^{5} c^{4}}{280 f}\) | \(137\) |
norman | \(\frac {a^{5} c^{4} \tan \left (f x +e \right )}{f}+\frac {a^{5} c^{4} \left (\tan ^{3}\left (f x +e \right )\right )}{f}+\frac {3 a^{5} c^{4} \left (\tan ^{5}\left (f x +e \right )\right )}{5 f}+\frac {a^{5} c^{4} \left (\tan ^{7}\left (f x +e \right )\right )}{7 f}+\frac {i a^{5} c^{4} \left (\tan ^{2}\left (f x +e \right )\right )}{2 f}+\frac {3 i a^{5} c^{4} \left (\tan ^{4}\left (f x +e \right )\right )}{4 f}+\frac {i a^{5} c^{4} \left (\tan ^{6}\left (f x +e \right )\right )}{2 f}+\frac {i a^{5} c^{4} \left (\tan ^{8}\left (f x +e \right )\right )}{8 f}\) | \(154\) |
parts | \(a^{5} c^{4} x +\frac {a^{5} c^{4} \left (\frac {\left (\tan ^{7}\left (f x +e \right )\right )}{7}-\frac {\left (\tan ^{5}\left (f x +e \right )\right )}{5}+\frac {\left (\tan ^{3}\left (f x +e \right )\right )}{3}-\tan \left (f x +e \right )+\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}+\frac {i a^{5} c^{4} \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2 f}+\frac {i a^{5} c^{4} \left (\frac {\left (\tan ^{8}\left (f x +e \right )\right )}{8}-\frac {\left (\tan ^{6}\left (f x +e \right )\right )}{6}+\frac {\left (\tan ^{4}\left (f x +e \right )\right )}{4}-\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {\ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}\right )}{f}+\frac {4 i a^{5} c^{4} \left (\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}-\frac {\ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}\right )}{f}+\frac {4 i a^{5} c^{4} \left (\frac {\left (\tan ^{6}\left (f x +e \right )\right )}{6}-\frac {\left (\tan ^{4}\left (f x +e \right )\right )}{4}+\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}-\frac {\ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}\right )}{f}+\frac {6 i a^{5} c^{4} \left (\frac {\left (\tan ^{4}\left (f x +e \right )\right )}{4}-\frac {\left (\tan ^{2}\left (f x +e \right )\right )}{2}+\frac {\ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}\right )}{f}+\frac {4 a^{5} c^{4} \left (\tan \left (f x +e \right )-\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}+\frac {6 a^{5} c^{4} \left (\frac {\left (\tan ^{3}\left (f x +e \right )\right )}{3}-\tan \left (f x +e \right )+\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}+\frac {4 a^{5} c^{4} \left (\frac {\left (\tan ^{5}\left (f x +e \right )\right )}{5}-\frac {\left (\tan ^{3}\left (f x +e \right )\right )}{3}+\tan \left (f x +e \right )-\arctan \left (\tan \left (f x +e \right )\right )\right )}{f}\) | \(404\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 178, normalized size of antiderivative = 1.78 \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=-\frac {32 \, {\left (-70 i \, a^{5} c^{4} e^{\left (8 i \, f x + 8 i \, e\right )} - 56 i \, a^{5} c^{4} e^{\left (6 i \, f x + 6 i \, e\right )} - 28 i \, a^{5} c^{4} e^{\left (4 i \, f x + 4 i \, e\right )} - 8 i \, a^{5} c^{4} e^{\left (2 i \, f x + 2 i \, e\right )} - i \, a^{5} c^{4}\right )}}{35 \, {\left (f e^{\left (16 i \, f x + 16 i \, e\right )} + 8 \, f e^{\left (14 i \, f x + 14 i \, e\right )} + 28 \, f e^{\left (12 i \, f x + 12 i \, e\right )} + 56 \, f e^{\left (10 i \, f x + 10 i \, e\right )} + 70 \, f e^{\left (8 i \, f x + 8 i \, e\right )} + 56 \, f e^{\left (6 i \, f x + 6 i \, e\right )} + 28 \, f e^{\left (4 i \, f x + 4 i \, e\right )} + 8 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 264 vs. \(2 (90) = 180\).
Time = 0.50 (sec) , antiderivative size = 264, normalized size of antiderivative = 2.64 \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=\frac {2240 i a^{5} c^{4} e^{8 i e} e^{8 i f x} + 1792 i a^{5} c^{4} e^{6 i e} e^{6 i f x} + 896 i a^{5} c^{4} e^{4 i e} e^{4 i f x} + 256 i a^{5} c^{4} e^{2 i e} e^{2 i f x} + 32 i a^{5} c^{4}}{35 f e^{16 i e} e^{16 i f x} + 280 f e^{14 i e} e^{14 i f x} + 980 f e^{12 i e} e^{12 i f x} + 1960 f e^{10 i e} e^{10 i f x} + 2450 f e^{8 i e} e^{8 i f x} + 1960 f e^{6 i e} e^{6 i f x} + 980 f e^{4 i e} e^{4 i f x} + 280 f e^{2 i e} e^{2 i f x} + 35 f} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.32 \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=-\frac {-35 i \, a^{5} c^{4} \tan \left (f x + e\right )^{8} - 40 \, a^{5} c^{4} \tan \left (f x + e\right )^{7} - 140 i \, a^{5} c^{4} \tan \left (f x + e\right )^{6} - 168 \, a^{5} c^{4} \tan \left (f x + e\right )^{5} - 210 i \, a^{5} c^{4} \tan \left (f x + e\right )^{4} - 280 \, a^{5} c^{4} \tan \left (f x + e\right )^{3} - 140 i \, a^{5} c^{4} \tan \left (f x + e\right )^{2} - 280 \, a^{5} c^{4} \tan \left (f x + e\right )}{280 \, f} \]
[In]
[Out]
none
Time = 0.94 (sec) , antiderivative size = 178, normalized size of antiderivative = 1.78 \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=-\frac {32 \, {\left (-70 i \, a^{5} c^{4} e^{\left (8 i \, f x + 8 i \, e\right )} - 56 i \, a^{5} c^{4} e^{\left (6 i \, f x + 6 i \, e\right )} - 28 i \, a^{5} c^{4} e^{\left (4 i \, f x + 4 i \, e\right )} - 8 i \, a^{5} c^{4} e^{\left (2 i \, f x + 2 i \, e\right )} - i \, a^{5} c^{4}\right )}}{35 \, {\left (f e^{\left (16 i \, f x + 16 i \, e\right )} + 8 \, f e^{\left (14 i \, f x + 14 i \, e\right )} + 28 \, f e^{\left (12 i \, f x + 12 i \, e\right )} + 56 \, f e^{\left (10 i \, f x + 10 i \, e\right )} + 70 \, f e^{\left (8 i \, f x + 8 i \, e\right )} + 56 \, f e^{\left (6 i \, f x + 6 i \, e\right )} + 28 \, f e^{\left (4 i \, f x + 4 i \, e\right )} + 8 \, f e^{\left (2 i \, f x + 2 i \, e\right )} + f\right )}} \]
[In]
[Out]
Time = 6.08 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.95 \[ \int (a+i a \tan (e+f x))^5 (c-i c \tan (e+f x))^4 \, dx=\frac {a^5\,c^4\,\left (-{\cos \left (e+f\,x\right )}^8\,35{}\mathrm {i}+128\,\sin \left (e+f\,x\right )\,{\cos \left (e+f\,x\right )}^7+64\,\sin \left (e+f\,x\right )\,{\cos \left (e+f\,x\right )}^5+48\,\sin \left (e+f\,x\right )\,{\cos \left (e+f\,x\right )}^3+40\,\sin \left (e+f\,x\right )\,\cos \left (e+f\,x\right )+35{}\mathrm {i}\right )}{280\,f\,{\cos \left (e+f\,x\right )}^8} \]
[In]
[Out]